#ifndef ACHIEVEMENT_H
#define ACHIEVEMENT_H

#include <QString>
#include <QDataStream>

class Achievement
{
public:
    Achievement();
    const QString& name() const;
    void setName(QString& name);
    const QString& iconUrl() const;
    void setIconUrl(const QString& iconUrl);
    bool closed() const;
    void setClosed(bool closed);
    const QString& description() const;
    void setDescription(const QString& desc);

private:
    QString m_name;
    QString m_iconUrl;
    QString m_desc;
    bool m_closed;


};

QDataStream &operator<<(QDataStream &out, const Achievement& achievement);
QDataStream &operator>>(QDataStream &in, Achievement& achievement);

#endif // ACHIEVEMENT_H
